package one;

import java.util.ArrayList;
import java.util.Arrays;

public class Analyzer 
{
	private ArrayList<String> scrambled;
	private ArrayList<String> wordBank;
	private final static int[] primeNumbers = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101};
	private final static char[] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
	public Analyzer(String filepath)
	{
		//wordBank = WordBank.getWordBank(filepath);
		scrambled = ScrambledWords.getWords();
	
	}
	
	public static int letterToNumber(char c)
	{
		int i = Arrays.binarySearch(alphabet, c);
		return primeNumbers[i];
		
	}
	
	public static void main(String[] args)
	{
		int[] nums = new int[26];
		for (int i = 0; i < alphabet.length; i++)
		{
			int j = letterToNumber(alphabet[i]);
			nums[i] = j;
			System.out.println(nums[i]);
		}
		
		
	}
}
